#include "DRWidgetRight.h"
#include "ui_DRWidgetRight.h"

DRWidgetRight::DRWidgetRight(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::DRWidgetRight)
{
    ui->setupUi(this);

    winTitle = new DRWinTitle;
    ui->gridLayout->addWidget(winTitle, 0, 0, 1, 1);
    ui->frame->hide();

    connect(this->winTitle, SIGNAL(onMove(int,int)), this, SIGNAL(onMove(int,int)));
    connect(this->winTitle, SIGNAL(onClose()), this, SIGNAL(onClose()));
    connect(this->winTitle, SIGNAL(onMinimum()), this, SIGNAL(onMinimum()));
    connect(this->winTitle, SIGNAL(onMaximun(bool)), this, SIGNAL(onMaximun(bool)));
}

DRWidgetRight::~DRWidgetRight()
{
    delete ui;
}
